package com.dt.dubai.mall.service;

import com.dt.dubai.mall.entity.MallCommodityBrandEntity;
import com.dt.dubai.mall.service.innate.MallCommodityBrandSerInnateAbsImp;
import com.dt.dubai.mall.service.ser.MallCommodityBrandService;
import org.springframework.stereotype.Service;

import java.util.List;

import java.util.Map;

@Service
public class MallCommodityBrandServiceImp extends MallCommodityBrandSerInnateAbsImp implements MallCommodityBrandService {

    /*innateServiceStart*/
    @Override
    protected void userSavEntity(MallCommodityBrandEntity inEntity) {

    }

    @Override
    protected void userModEntity(MallCommodityBrandEntity inEntity, MallCommodityBrandEntity upEntity) {
        upEntity.setCommodityType(inEntity.getCommodityType()); // 类型
        upEntity.setBrandName(inEntity.getBrandName()); // 品牌名称
        upEntity.setBrandStory(inEntity.getBrandStory()); // 品牌故事
        upEntity.setBrandLogoUrl(inEntity.getBrandLogoUrl()); // 品牌logo
        upEntity.setBrandType(inEntity.getBrandType()); // 类型
        upEntity.setBrandProducingArea(inEntity.getBrandProducingArea()); // 产地
        upEntity.setBrandOrder(inEntity.getBrandOrder()); // 序号

    }
    /*innateServiceEnd*/
    /*以上内容请误删除或是移动，系统升级使用，static系统升级覆盖用户修改，用户代码请写入下方*/

    @Override
    public Map<String, Object> findBrandNameList(Long commodityType ,final Long userId){

       return this.mallCommodityBrandMapper.findBrandNameList(commodityType,userId);
    }


}
